﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace DeepEarth.Core
{
    /// <summary>
    /// Represents an entity containing a set of locations.
    /// </summary>
    public interface IMultiLocation : ILocatable
    {
        /// <summary>
        /// Gets the locations.
        /// </summary>
        /// <returns>A location collection.</returns>
        IEnumerable<Location> Locations {get;}
    }

    public static class MultiLocationEx
    {
        public static LocationRectangle GetBoundingBox(this IMultiLocation ml)
        {
            return new LocationRectangle(ml.Locations);
        }
    }

}
